package ch08.shizhang.shizhang01;

/**
 * @author 茜茜
 * @date 2024-11-29 21:31
 */
public class LogServiceImpl implements LogService {
    @Override
    public void testMethod1() {
        try {
            Thread.sleep(100);//模拟方法执行时间
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("Executing testMethod1");
    }

    @Override
    public void testMethod2() {
        try {
            Thread.sleep(150);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("Executing testMethod2");
    }

    @Override
    public void testMethod3() {
        try {
            Thread.sleep(50);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("Executing testMethod3");
    }
}
